//
//  MessageCell.m
//  HMMarket
//
//  Created by 孙鹏飞 on 2017/5/11.
//  Copyright © 2017年 homai. All rights reserved.
//

#import "MessageCell.h"
#import "MessageModel.h"

@interface MessageCell()

@property (weak, nonatomic) IBOutlet UILabel *messageText;

@property (weak, nonatomic) IBOutlet UILabel *timeText;

@end

@implementation MessageCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)setMessage:(MessageModel *)message
{
    _message = message;
    
    _messageText.text = _message.content;
    _timeText.text = _message.start_time;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
